#include "common/defines.h"
#include "notifytextmessagenotification.h"

#include "converse/converseabstractmessage.h"
#include "converse/conversetextmessage.h"

#include "account/accountmember.h"
#include "account/accountbuddy.h"


namespace Notify {


TextMessageNotification::TextMessageNotification(Converse::TextMessage *textMessage,
                                                 QObject *parent)
    : MessageNotification(parent)
    , m_textMessage(textMessage)
{

}


TextMessageNotification::~TextMessageNotification()
{
}


MessageNotification::MessageNotificationType \
TextMessageNotification::messageNotificationType() const
{
    return MessageNotification::TextMessageNotificationType;
}




QString TextMessageNotification::text() const
{
    if (m_textMessage == NULL)
        return QString("");

    return m_textMessage->message();
}


const Converse::AbstractMessage *TextMessageNotification::message() const
{
    return m_textMessage;
}

} // namespace Notify
